<?php
$db['inventory_items']=array (
  'columns' =>
  array (
    'item_id' =>
     array (
      'type' => 'mediumint(8)',
      'required' => true,
      'pkey' => true,
      'extra' => 'auto_increment',
      'label' => '明细表主键ID',
    ),
    'inventory_id' =>
    array (
      'type' => 'varchar(32)',
      'required' => true,
      'label' => '盘点单ID',
    ),
    'bm_id' =>
    array (
      'type' => 'int(10)',
      'required' => true,
      'label' => '基础物料ID',
    ),
    'accounts_num' =>
    array (
      'type' => 'mediumint(8)',
      'label' => '线上账面数',
    ),
    'accounts_share_num' =>
    array (
      'type' => 'mediumint(8)',
      'label' => '共享账面数',
    ),
    'actual_num' =>
    array (
      'type' => 'mediumint(8)',
      'label' => '线上实际数',
    ),
    'actual_share_num' =>
    array (
      'type' => 'mediumint(8)',
      'label' => '共享实际数',
    ),
    'short_over' =>
    array (
      'type' => 'mediumint(9)',
      'label' => '线上盘盈亏',
    ),
    'share_short_over' =>
    array (
      'type' => 'mediumint(9)',
      'label' => '共享盘盈亏',
    ),
  ),
  'index' =>
    array (
        'ind_inventory_id' =>
        array (
            'columns' =>
            array (
                0 => 'inventory_id',
            ),
        ),
        'ind_bm_id' =>
        array (
            'columns' =>
            array (
                0 => 'bm_id',
            ),
        ),
  ),
  'comment' => '门店盘点明细表',
  'engine' => 'innodb',
  'version' => '$Rev:  $',
);